
<%@ page import="ar.com.photo_admin.domain.User"%>
<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'user.label', default: 'User')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>

	<div id="templatemo_middle">

		<div id="intro">

			<a href="#list-user" class="skip" tabindex="-1"><g:message
					code="default.link.skip.label" default="Skip to content&hellip;" /></a>
			<div class="nav" role="navigation">
				<ul>
					<li><a class="home" href="${createLink(uri: '/')}"><g:message
								code="default.home.label" /></a></li>
					<li><g:link class="create" action="create">
							<g:message code="default.new.label" args="[entityName]" />
						</g:link></li>
				</ul>
			</div>
		</div>
	</div>

	<div id="templatemo_main">


		<div id="list-user" class="content scaffold-list" role="main">
			<h1>
				<g:message code="default.list.label" args="[entityName]" />
			</h1>
			<g:if test="${flash.message}">
				<div class="message" role="status">
					${flash.message}
				</div>
			</g:if>
			<table>
				<thead>
					<tr>

						<g:sortableColumn property="username"
							title="${message(code: 'user.username.label', default: 'Username')}" />
						
						<g:sortableColumn property="email"
							title="${message(code: 'user.email.label', default: 'Email')}" />

						<g:sortableColumn property="address"
							title="${message(code: 'user.address.label', default: 'Address')}" />

						<g:sortableColumn property="birthday"
							title="${message(code: 'user.birthday.label', default: 'Birthday')}" />

						<g:sortableColumn property="dateCreated"
							title="${message(code: 'user.dateCreated.label', default: 'Date Created')}" />

					</tr>
				</thead>
				<tbody>
					<g:each in="${userInstanceList}" status="i" var="userInstance">
						<tr class="${(i % 2) == 0 ? 'even' : 'odd'}">

							<td><g:link action="show" id="${userInstance.id}">
									${fieldValue(bean: userInstance, field: "username")}
								</g:link></td>

							<td>
								${fieldValue(bean: userInstance, field: "email")}
							</td>

							<td>
								${fieldValue(bean: userInstance, field: "address")}
							</td>

							<td><g:formatDate date="${userInstance.birthday}" /></td>

							<td><g:formatDate date="${userInstance.dateCreated}" /></td>

						</tr>
					</g:each>
				</tbody>
			</table>
			<div class="pagination">
				<g:paginate total="${userInstanceTotal}" />
			</div>
		</div>
	</div>
</body>
</html>
